package 字符串中的单词数;

class Solution {
    /*public int countSegments(String s) {
        String[] ret = s.split(" ");

    }*/
    public static void main(String[] args) {
        String s = "\", , , ,        a, eaefa\"";
        String[] ret = s.split(" ");
        int count = 0;
        for(int i = 0;i<ret.length;i++){

            if(ret[i].equals("")){
                continue;
            }
            System.out.println(ret[i]);
            count++;
        }
    }
}
